package com.my.demo.service.impl;

import com.my.demo.dao.EmployeeDao;
import com.my.demo.pojo.Employee;
import com.my.demo.service.EmployeeService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 林允
 * @version 1.0
 * @description: TODO
 * @date 2023/5/23 21:14
 */
@Service
@Transactional // 事务
public class EmployeeServiceImpl implements EmployeeService {

    @Resource
    private EmployeeDao employeeDao;

    @Override
    public List<Employee> getAllEmployee() {
        return employeeDao.getAllEmployee();
    }
}
